package com.paso.security.springmvc.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Set;

/**
 * 数据库返回的用户身份信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserDto {

    // session中存放用户信息的key
    public static final String SESSION_USER_KEY = "_user";
    // 用户身份信息
    private String id;
    private String username;
    private String password;
    private String fullName;
    private String mobile;

    /**
     * 用户权限
     */
    private Set<String> authorities;

}
